<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:composite="http://java.sun.com/jsf/composite">
<!-- 
	To learn more about JSF Composite Component, please read
	http://stackoverflow.com/questions/6822000/when-to-use-uiinclude-tag-files-composite-components-and-or-custom-componen
	http://balusc.blogspot.de/2013/01/composite-component-with-multiple-input.html
 -->	
<head>
	<title>Display boolean value as an image</title>
</head>
<body>
	<composite:interface>
		<composite:attribute name="value" required="true" />
	</composite:interface>

	<composite:implementation>
		<h:graphicImage name="icons/tick.png" width="16" height="16" alt="true" rendered="#{cc.attrs.value}" />
		<h:graphicImage name="icons/cross.png" width="16" height="16" alt="false" rendered="#{not empty cc.attrs.value and not cc.attrs.value}" />
	</composite:implementation>
</body>
</html>